/**
 * 
 */
package il.ac.technion.wiki.impl.search;

import il.ac.technion.wiki.api.search.NeutralWordsCleaner;

import org.junit.Assert;
import org.junit.Test;

/**
 * @author moshemal
 *
 */
public class MyNeutralWordsCleanerTest {

	/**
	 * Test method for {@link il.ac.technion.wiki.impl.search.MyNeutralWordsCleaner#cleanTitle(java.lang.String)}.
	 */
	@Test
	public void testRegularCleanString() {
		NeutralWordsCleaner cleaner = new WikiNeutralWordsCleaner();
		String s = "a.b c!! and the a" ;
		String cleaned = cleaner.regularCleanString(s);
		Assert.assertEquals("b c",cleaned);
		cleaned = cleaner.regularCleanString("  c.e.!!d");
		Assert.assertEquals("c e d",cleaned);
		cleaned = cleaner.regularCleanString("the white!, the-blue, and. is the red aloha");
		Assert.assertEquals("white blue red aloha",cleaned);
	}
}
